﻿using PagedList;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BBICMS.Model.Works;

namespace BBICMS.Model.ViewModel.Back
{
    public  class WorkListVM
    {
        public IQueryable<Work> Works { get; set; }
        public int PageSize { get; set; }
        public int PageNumber { get; set; }

        public IPagedList<Work> OnePageOfWorks => this.Works?.ToPagedList(PageNumber, PageSize);
    }
}
